import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? 'api/dashboard' : 'galaxy'
export const dashboard = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/dashboard/index',
    method: 'post',
    data
  })
export const dashboardDetail = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/dashboard/detail',
    method: 'post',
    data
  })
/**
 * * dashboard页面概览
 * @param data
 */
export const dashboardSummary = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/dashboard/summary',
    method: 'post',
    data
  })
